Skip to content

Conversation

@justinc1
Copy link
Collaborator

Show details of failed TaskTag if TaskTag fails on HyperCore side.

Sample output before PR:

TASK [Create VM demo-vm for examples/vm_replication_info.yml] ******************************************************************************
fatal: [localhost]: FAILED! => changed=false 
  msg: There was a problem during this task execution.

Sample output after PR:

TASK [Create VM demo-vm for examples/vm_replication_info.yml] ******************************************************************************
fatal: [localhost]: FAILED! => changed=false 
  msg: 'There was a problem during this task execution. Task details: {"taskTag": "204", "progressPercent": 0, "state": "ERROR", "formattedDescription": "Delete block device %@ for Virtual Machine %@", "descriptionParameters": ["9dc1c6eb", "demo-vm"], "formattedMessage": "Unable to delete block device from VM ''%@'': Still in use", "messageParameters": ["demo-vm"], "objectUUID": "e6f13db3-724a-4aeb-9931-5856a5aba851", "created": 1687985115, "modified": 1687985176, "completed": 1687985176, "sessionID": "c13cb258-22ea-4d91-8500-0b47bdf1a532", "nodeUUIDs": ["d676b39c-595f-4c3b-a8df-a18f308243c0"]}'

Partially fixes #249

@justinc1 justinc1 requested a review from shoriminimoe June 28, 2023 21:30
@justinc1 justinc1 self-assigned this Jun 28, 2023
@justinc1 justinc1 force-pushed the better-error-message-for-failed-task branch 2 times, most recently from 9281cae to c681c08 Compare June 28, 2023 21:43
Partially fixes #249

Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
@justinc1 justinc1 force-pushed the better-error-message-for-failed-task branch from c681c08 to 53d83f1 Compare June 28, 2023 21:44
@justinc1 justinc1 merged commit b26cc40 into main Jun 29, 2023
@justinc1 justinc1 deleted the better-error-message-for-failed-task branch June 29, 2023 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vm module fails to remove disk

3 participants